import { myRequest } from './api.js'

// 用户登录
const login = async function(params) {
	return await myRequest({url: '/activity/visitor/login', data: params, method: "POST"})
}

// 获取认证状态
const getUserState = async function(params) {
	return await myRequest({url: '/sign/member/getmember', data: params})
}

// 发送验证码
const getSendCode = async function(params) {
	return await myRequest({url: '/activity/visitor/sendcode', data: params})
}

// 获取微信jssdk配置
const getWxConfig = async function() {
	return await myRequest({url: '/activity/visitor/getWxConfig'})
}

export {
	login,
	getUserState,
	getSendCode,
	getWxConfig
}